/*
 * @Author: 华开峰
 * @Date: 2022-03-09 14:55:51
 * @LastEdit: 
 * @LastEditors: hkf
 * @LastEditTime: 2022-03-09 14:55:51
 * @FilePath: \sharePlatform\design\webpack-box\seed.js
 * @Descripition: 
 */
ResouceShare = artifacts.require("./ResouceShare.sol");
module.exports = function(callback) {
    current_time = Math.round(new Date() / 1000);
    amt_1 = web3.toWei(1, 'ether');
    ResouceShare.deployed().then(function(i) { i.addProductTostore('iphone 5', 'Cell Phones & Accessories', 'QmUmQiV3yf65VTX28S5Mun4q5upt4we4QowRkY62w4JxaX', 'QmZJuCNfjktqyqZgx85QSsgY8MsPLjKRKL5EqxXD9g2V99', current_time, current_time + 200, 2 * amt_1, 0).then(function(f) { console.log(f) }) });
    ResouceShare.deployed().then(function(i) { i.addProductTostore('iphone 5s', 'Cell Phones & Accessories', 'QmefvDNULwTCg1Aa5SyuSkqXHL2kvgfo8TZMNxRsBa4b8Y', 'QmZJuCNfjktqyqZgx85QSsgY8MsPLjKRKL5EqxXD9g2V99', current_time, current_time + 400, 3 * amt_1, 1).then(function(f) { console.log(f) }) });
    ResouceShare.deployed().then(function(i) { i.addProductTostore('iphone 6', 'Cell Phones & Accessories', 'QmVxQUrQxVT8NWzfg75g9dduug88fyd6Nua8rkTJxFuFcy', 'QmZJuCNfjktqyqZgx85QSsgY8MsPLjKRKL5EqxXD9g2V99', current_time, current_time + 14, amt_1, 0).then(function(f) { console.log(f) }) });
    ResouceShare.deployed().then(function(i) { i.addProductTostore('iphone 6s', 'Cell Phones & Accessories', 'QmYUU3t6ia4XcMY62wcYZr76KxxXM3fLVqNGKVecvEUnsi', 'QmZJuCNfjktqyqZgx85QSsgY8MsPLjKRKL5EqxXD9g2V99', current_time, current_time + 86400, 4 * amt_1, 1).then(function(f) { console.log(f) }) });
    ResouceShare.deployed().then(function(i) { i.addProductTostore('iphone 7', 'Cell Phones & Accessories', 'QmcJ4VxRRv57NodwWzro843uctokqXtHfrSUSCcJTFAFCu', 'QmZJuCNfjktqyqZgx85QSsgY8MsPLjKRKL5EqxXD9g2V99', current_time, current_time + 86400, 5 * amt_1, 1).then(function(f) { console.log(f) }) });
    ResouceShare.deployed().then(function(i) { i.addProductTostore('Jeans', 'Clothing, Shoes & Accessories', 'QmYjUqVNTSUad5HbnGc9t6kUKMzG2FWgoJwcwTksxXnNoL', 'QmZJuCNfjktqyqZgx85QSsgY8MsPLjKRKL5EqxXD9g2V99', current_time, current_time + 86400 + 86400 + 86400, 5 * amt_1, 1).then(function(f) { console.log(f) }) });
    ResouceShare.deployed().then(function(i) { i.productIndex.call().then(function(f) { console.log(f) }) });
}